package y23.Aug;

class MyRunnable implements Runnable{

    public void run(){
        while(true){
            try {
                Thread.sleep(200);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}

public class test2 {

    public static void main(String[] args) {
        char a = 0;
        int i = a;
        Runnable runnable = new MyRunnable();
        Thread thread = new Thread(runnable);
        thread.start();
        while (true) {
            System.out.println(i + " = " + a);
            a+=3;
            i = a;
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
